﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CinemaList.aspx.cs" Inherits="Movie.web.CinemaList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>影院列表</title>
    <style type="text/css">
        
    ul li{ list-style:none;}        
    
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
   <%-- Repeater控件--%>
        <asp:Repeater ID="Repeater1" runat="server" 
            onitemcommand="Repeater1_ItemCommand" >
      <%--  头部--%>
        <HeaderTemplate>
        <ul>
        </HeaderTemplate>
       <%-- 项目--%>
        <ItemTemplate>
            <li>
            <asp:Label ID="Label2" runat="server" Text='<%#Eval("Name") %>'></asp:Label><br />
            <asp:Label ID="Label3" runat="server" Text='<%#Eval("Address") %>'></asp:Label>
         <%--非用到字段
            <asp:Label ID="Label6" runat="server" Text='<%#Eval("PostalCode") %>'></asp:Label>            
            <asp:Label ID="Label5" runat="server" Text='<%#Eval("WebSite") %>'></asp:Label>
            <asp:Label ID="Label4" runat="server" Text='<%#Eval("Phone") %>'></asp:Label>--%>
            
                <asp:Button ID="Button1" runat="server" Text="购买" CommandName="ShowRoom" CommandArgument='<%#Eval("CinemaID") %>' />
            </li>
        </ItemTemplate>
       <%-- 尾部--%>
        <FooterTemplate>
        </ul>
        </FooterTemplate>

        </asp:Repeater>


    <%--GridView控件--%>
     <%--   <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            CellPadding="4" ForeColor="#333333" GridLines="None" 
            >
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            <Columns>
                <asp:TemplateField HeaderText="影院信息">
                    <ItemTemplate>
                        <asp:Literal ID="Literal1" runat="server" Text='<%# Eval("Name") %>'></asp:Literal>
                        <asp:Literal ID="Literal2" runat="server" Text='<%# Eval("Address") %>'></asp:Literal>
                    <asp:Button ID="Button1" runat="server" Text="购买" CommandName="ShowRoom" CommandArgument="cinemaId" />
                    </ItemTemplate>
                </asp:TemplateField>


            </Columns>
            <EditRowStyle BackColor="#999999" />
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#E9E7E2" />
            <SortedAscendingHeaderStyle BackColor="#506C8C" />
            <SortedDescendingCellStyle BackColor="#FFFDF8" />
            <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
        </asp:GridView>--%>
    </div>
    </form>
</body>
</html>
